/**
 * Copyright 2013 Mr.Hai Mobile Developer. All rights reserved.
 * HAI PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.hector.meinewerk.common;

import com.hector.meinewerk.constants.Constants;

/**
 * 
 * model event
 * 
 * @author: HaiTC3
 * @version: 1.1
 * @since: 1.0 | Mar 6, 2013
 */
public class ModelEvent {
	private ActionEvent actionEvent;
	Object modelData;
	private int modelCode;
	String modelMessage;
	// luu giu param cua request khi truyen len server
	private String param = Constants.STR_BLANK;

	public void setActionEvent(ActionEvent actionEvent) {
		this.actionEvent = actionEvent;
	}

	public ActionEvent getActionEvent() {
		return actionEvent;
	}

	public Object getModelData() {
		return modelData;
	}

	public void setModelData(Object modelData) {
		this.modelData = modelData;
	}

	public int getModelCode() {
		return modelCode;
	}

	public String getModelMessage() {
		return modelMessage;
	}

	public void setModelMessage(String modelMessage) {
		this.modelMessage = modelMessage;
	}

	/**
	 * @return the param
	 */
	public String getParam() {
		return param;
	}

	/**
	 * @param param
	 *            the param to set
	 */
	public void setParam(String param) {
		this.param = param;
	}

	/**
	 * method description
	 * 
	 * @param @param errorCommon
	 * @return: void
	 * @author: HaiTC3
	 * @date: Mar 7, 2013
	 */
	public void setModelCode(int errorCommon) {
		// TODO Auto-generated method stub
		this.modelCode = errorCommon;
	}
}
